package avicit.cbb.techclass.elefileupdown.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.domain.BeanBase;
import avicit.platform6.core.properties.PlatformConstant.LogType;

/**
 * bean CbbDocRelation Title: 表CBB_DOC_RELATION的PoJo类，也就是数据库映射类 Description:
 * 全文文件关系表 Copyriht: Copyright (c) 2012 Company: AVICIT Co., Ltd
 * 
 * @author AVICIT DEV
 * @version 1.0 Date: 2015-06-10 17:51
 * 
 */
@Entity
@Table(name = "CBB_DOC_RELATION")
public class CbbDocRelation extends BeanBase {

	private static final long serialVersionUID = 1L;

	@LogField
	@FieldRemark(column = "ID", field = "id", name = "全文文件关系ID")
	private String id; // 主键
	@LogField
	@FieldRemark(column = "PARENT_ID", field = "parentId", name = "父ID")
	private String parentId; // 父ID
	@LogField
	@FieldRemark(column = "ARCHIVE_TABLE_ID", field = "archiveTableId", name = "表ID")
	private String archiveTableId; // 表ID
	@LogField
	@FieldRemark(column = "RECORD_ID", field = "recordId", name = "记录ID")
	private String recordId; // 记录ID
	@LogField
	@FieldRemark(column = "ATTACHMENT_ID", field = "attachmentId", name = "全文记录ID")
	private String attachmentId; // 全文记录ID
	@LogField
	@FieldRemark(column = "ATTACHMENT_CATEGORY", field = "attachmentCategory", name = "全文类别")
	private String attachmentCategory; // 全文类别（预留字段，用于区分预览图、原图）
	@LogField
	@FieldRemark(column = "ATTACHMENT_COVER_TYPE", field = "attachmentCoverType", name = "封面类型")
	private String attachmentCoverType; // 封面类型（1：节点封面；2：主题封面）
	@LogField
	@FieldRemark(column = "DOC_DATASOURCE", field = "docDatasource", name = "数据源")
	private String docDatasource; // 数据源
	@LogField
	@FieldRemark(column = "DOC_SER_ID", field = "docSerId", name = "电子文件服务器ID")
	private String docSerId; // 电子文件服务器ID
	@LogField
	@FieldRemark(column = "DOC_SER_NAME", field = "docSerName", name = "电子文件服务器名称")
	private String docSerName; // 电子文件服务器名称
	@LogField
	@FieldRemark(column = "DOC_SER_PATH", field = "docSerPath", name = "存放相对路径")
	private String docSerPath; // 存放相对路径
	@LogField
	@FieldRemark(column = "DOC_REL_VERSION", field = "docRelVersion", name = "全文版本")
	private String docRelVersion; // 全文版本
	@LogField
	@FieldRemark(column = "DOC_TRUE", field = "docTrue", name = "真实性")
	private String docTrue; // 真实性（1：真实；0：不真实）
	@LogField
	@FieldRemark(column = "DOC_INTEGRITY", field = "docIntegrity", name = "完整性")
	private String docIntegrity; // 完整性（1：完整；0：不完整）
	@LogField
	@FieldRemark(column = "DOC_VALID", field = "docValid", name = "有效性")
	private String docValid; // 有效性（1：有效；0：无效）
	@LogField
	@FieldRemark(column = "DOC_FINGER_CODE", field = "docFingerCode", name = "指纹编码")
	private String docFingerCode; // 指纹编码
	@LogField
	@FieldRemark(column = "REMARK", field = "remark", name = "备注")
	private String remark; // 备注
	@LogField
	@FieldRemark(column = "IF_DELETE", field = "ifDelete", name = "是否删除标识")
	private String ifDelete; // 备注
	@LogField
	@FieldRemark(column = "ATT_DESCRIBE", field = "allDescribe", name = "全文描述")
	private String allDescribe; // 备注
	private String orgId; // 组织ID
	private String deptId; // 部门ID
	private String sysId; // 系统标识ID
	private String secretLevel; // 密级
	private String sysApplicationId; // 多应用ID
	private String attribute01; // 上传类型：空:无， 1：电子件，2：扫描影像
	private String attribute02; // OCR识别状态： 0:未识别，1:识别中，2:已完成, 3:识别失败
	private String attribute03; // 预留字段3
	private String attribute04; // 预留字段4
	private String attribute05; // 预留字段5
	private String attribute06; // 预留字段6
	private String attribute07; // 预留字段7
	private String attribute08; // 预留字段8
	private java.util.Date attribute09; // 预留字段9
	private java.util.Date attribute10; // 预留字段10
	private java.math.BigDecimal attribute11; // 预留字段11
	private java.math.BigDecimal attribute12; // 预留字段12
	private java.math.BigDecimal attribute13; // 预留字段13
	private java.math.BigDecimal attribute14; // 预留字段14
	private java.math.BigDecimal attribute15; // 预留字段15

	@Id
	@Column(name = "ID", length = 50, nullable = false)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "PARENT_ID", length = 50)
	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Column(name = "ARCHIVE_TABLE_ID", length = 50)
	public String getArchiveTableId() {
		return archiveTableId;
	}

	public void setArchiveTableId(String archiveTableId) {
		this.archiveTableId = archiveTableId;
	}

	@Column(name = "RECORD_ID", length = 50)
	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	@Column(name = "ATTACHMENT_ID", length = 50, nullable = false)
	public String getAttachmentId() {
		return attachmentId;
	}

	public void setAttachmentId(String attachmentId) {
		this.attachmentId = attachmentId;
	}

	@Column(name = "ATTACHMENT_CATEGORY", length = 16)
	public String getAttachmentCategory() {
		return attachmentCategory;
	}

	public void setAttachmentCategory(String attachmentCategory) {
		this.attachmentCategory = attachmentCategory;
	}

	@Column(name = "ATTACHMENT_COVER_TYPE", length = 2)
	public String getAttachmentCoverType() {
		return attachmentCoverType;
	}

	public void setAttachmentCoverType(String attachmentCoverType) {
		this.attachmentCoverType = attachmentCoverType;
	}

	@Column(name = "DOC_DATASOURCE", length = 128)
	public String getDocDatasource() {
		return docDatasource;
	}

	public void setDocDatasource(String docDatasource) {
		this.docDatasource = docDatasource;
	}

	@Column(name = "DOC_SER_ID", length = 50)
	public String getDocSerId() {
		return docSerId;
	}

	public void setDocSerId(String docSerId) {
		this.docSerId = docSerId;
	}

	@Column(name = "DOC_SER_NAME", length = 128)
	public String getDocSerName() {
		return docSerName;
	}

	public void setDocSerName(String docSerName) {
		this.docSerName = docSerName;
	}

	@Column(name = "DOC_SER_PATH", length = 256)
	public String getDocSerPath() {
		return docSerPath;
	}

	public void setDocSerPath(String docSerPath) {
		this.docSerPath = docSerPath;
	}

	@Column(name = "DOC_REL_VERSION", length = 50)
	public String getDocRelVersion() {
		return docRelVersion;
	}

	public void setDocRelVersion(String docRelVersion) {
		this.docRelVersion = docRelVersion;
	}

	@Column(name = "DOC_TRUE", length = 2)
	public String getDocTrue() {
		return docTrue;
	}

	public void setDocTrue(String docTrue) {
		this.docTrue = docTrue;
	}

	@Column(name = "DOC_INTEGRITY", length = 2)
	public String getDocIntegrity() {
		return docIntegrity;
	}

	public void setDocIntegrity(String docIntegrity) {
		this.docIntegrity = docIntegrity;
	}

	@Column(name = "DOC_VALID", length = 2)
	public String getDocValid() {
		return docValid;
	}

	public void setDocValid(String docValid) {
		this.docValid = docValid;
	}

	@Column(name = "DOC_FINGER_CODE", length = 128)
	public String getDocFingerCode() {
		return docFingerCode;
	}

	public void setDocFingerCode(String docFingerCode) {
		this.docFingerCode = docFingerCode;
	}

	@Column(name = "REMARK", length = 255)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "IF_DELETE", length = 2, nullable = false)
	public String getIfDelete() {
		return ifDelete;
	}

	public void setIfDelete(String ifDelete) {
		this.ifDelete = ifDelete;
	}

	@Column(name = "ALL_DESCRIBE", length = 4000, nullable = false)
	public String getAllDescribe() {
		return allDescribe;
	}

	public void setAllDescribe(String allDescribe) {
		this.allDescribe = allDescribe;
	}

	@Column(name = "ORG_ID", length = 50, nullable = false)
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "DEPT_ID", length = 50, nullable = false)
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	@Column(name = "SYS_ID", length = 50)
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	@Column(name = "SECRET_LEVEL", length = 50)
	public String getSecretLevel() {
		return secretLevel;
	}

	public void setSecretLevel(String secretLevel) {
		this.secretLevel = secretLevel;
	}

	@Column(name = "SYS_APPLICATION_ID", length = 50)
	public String getSysApplicationId() {
		return sysApplicationId;
	}

	public void setSysApplicationId(String sysApplicationId) {
		this.sysApplicationId = sysApplicationId;
	}

	@Column(name = "ATTRIBUTE_01", length = 255)
	public String getAttribute01() {
		return attribute01;
	}

	public void setAttribute01(String attribute01) {
		this.attribute01 = attribute01;
	}

	@Column(name = "ATTRIBUTE_02", length = 255)
	public String getAttribute02() {
		return attribute02;
	}

	public void setAttribute02(String attribute02) {
		this.attribute02 = attribute02;
	}

	@Column(name = "ATTRIBUTE_03", length = 255)
	public String getAttribute03() {
		return attribute03;
	}

	public void setAttribute03(String attribute03) {
		this.attribute03 = attribute03;
	}

	@Column(name = "ATTRIBUTE_04", length = 255)
	public String getAttribute04() {
		return attribute04;
	}

	public void setAttribute04(String attribute04) {
		this.attribute04 = attribute04;
	}

	@Column(name = "ATTRIBUTE_05", length = 255)
	public String getAttribute05() {
		return attribute05;
	}

	public void setAttribute05(String attribute05) {
		this.attribute05 = attribute05;
	}

	@Column(name = "ATTRIBUTE_06", length = 255)
	public String getAttribute06() {
		return attribute06;
	}

	public void setAttribute06(String attribute06) {
		this.attribute06 = attribute06;
	}

	@Column(name = "ATTRIBUTE_07", length = 255)
	public String getAttribute07() {
		return attribute07;
	}

	public void setAttribute07(String attribute07) {
		this.attribute07 = attribute07;
	}

	@Column(name = "ATTRIBUTE_08", length = 255)
	public String getAttribute08() {
		return attribute08;
	}

	public void setAttribute08(String attribute08) {
		this.attribute08 = attribute08;
	}

	@Column(name = "ATTRIBUTE_09")
	public java.util.Date getAttribute09() {
		return attribute09;
	}

	public void setAttribute09(java.util.Date attribute09) {
		this.attribute09 = attribute09;
	}

	@Column(name = "ATTRIBUTE_10")
	public java.util.Date getAttribute10() {
		return attribute10;
	}

	public void setAttribute10(java.util.Date attribute10) {
		this.attribute10 = attribute10;
	}

	@Column(name = "ATTRIBUTE_11")
	public java.math.BigDecimal getAttribute11() {
		return attribute11;
	}

	public void setAttribute11(java.math.BigDecimal attribute11) {
		this.attribute11 = attribute11;
	}

	@Column(name = "ATTRIBUTE_12")
	public java.math.BigDecimal getAttribute12() {
		return attribute12;
	}

	public void setAttribute12(java.math.BigDecimal attribute12) {
		this.attribute12 = attribute12;
	}

	@Column(name = "ATTRIBUTE_13")
	public java.math.BigDecimal getAttribute13() {
		return attribute13;
	}

	public void setAttribute13(java.math.BigDecimal attribute13) {
		this.attribute13 = attribute13;
	}

	@Column(name = "ATTRIBUTE_14")
	public java.math.BigDecimal getAttribute14() {
		return attribute14;
	}

	public void setAttribute14(java.math.BigDecimal attribute14) {
		this.attribute14 = attribute14;
	}

	@Column(name = "ATTRIBUTE_15")
	public java.math.BigDecimal getAttribute15() {
		return attribute15;
	}

	public void setAttribute15(java.math.BigDecimal attribute15) {
		this.attribute15 = attribute15;
	}
	/**
	 * TODO 获取日志表单名称
	 * @return 
	 * @throws
	 */
	@Transient
	public String getLogFormName() {
		if (super.logFormName == null || super.logFormName.equals("")) {
			return "附件上传下载模块";
		} else {
			return super.logFormName;
		}
	}
	/**
	 * TODO 获取日志标题
	 * @return 
	 * @throws
	 */
	@Transient
	public String getLogTitle() {
		if (super.logTitle == null || super.logTitle.equals("")) {
			return "附件上传下载模块";
		} else {
			return super.logTitle;
		}
	}
	/**
	 * TODO 获取日志类型
	 * @return 
	 * @throws
	 */
	@Transient
	public LogType getLogType() {
		if (super.logType == null || super.logType.equals("")) {
			return LogType.module_operate;
		} else {
			return super.logType;
		}
	}

}